#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int  n;
	int m = 1;

	scanf("%d", &n);
	int i = 1;
	while (i <= n)
	{
		m *= i;
		i++;
	}
	printf("%d", m);
	return 0;
}